package com.rp.common.utils;

import java.time.DayOfWeek;
import java.time.LocalDateTime;

public class Week {

        public static Integer getDay() {
            DayOfWeek dayOfWeek = LocalDateTime.now().getDayOfWeek();
            switch (dayOfWeek){
                case MONDAY:return 1;
                case TUESDAY:return 2;
                case WEDNESDAY:return 3;
                case THURSDAY:return 4;
                case FRIDAY:return 5;
                case SATURDAY:return 6;
                case SUNDAY:return 7;
                default:return 65534;
            }
        }
    }

